#被动技能【致残打击】
execute as @a[tag=weide,scores={Trident0=1..}] run effect clear @s strength
execute as @a[tag=weide,scores={Trident0=1..}] run scoreboard players set @s Trident0 0

#主动技能【纵身跃击】
execute as @a[tag=weide,scores={skEgg=1..}] at @s run function nw:yingxiong/1yingxiong/10lielongshou/skill/1yueji
#主动技能【纵身跃击】CD
execute as @a[tag=weide,scores={skCDEgg=0}] at @s run function nw:yingxiong/1yingxiong/10lielongshou/skill/1yueji_cd


#主动技能【雨林之地】
execute as @a[tag=weide,scores={skEXBottle=1..}] at @s run function nw:yingxiong/1yingxiong/10lielongshou/skill/2yulinzhidi
#主动技能【雨林之地】二段：恢复翅膀
execute as @a[tag=weide,scores={skCDEXBottle=36}] run item replace entity @s armor.chest with minecraft:elytra{AttributeModifiers: [{Operation: 0, Amount: +2, UUID: [I; 645588780, -2112332365, -276686911, 1157484677], Slot: chest, AttributeName: "generic.armor", Name: "generic.armor"}], display: {Name: '[{"text":"龙翅","color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]', Lore: ['{"text":"黑龙的翅膀","color":"dark_green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}', '{"text":"具有极高的防爆和防火","color":"dark_green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']}, Unbreakable: 1, Enchantments: [{id: "minecraft:protection", lvl: 1}, {id: "minecraft:blast_protection", lvl: 10}, {id: "minecraft:fire_protection", lvl: 10}, {id: "minecraft:binding_curse", lvl: 1}]} 1

#主动技能【雨林之地】CD
execute as @a[tag=weide,scores={skCDEXBottle=0}] at @s run function nw:yingxiong/1yingxiong/10lielongshou/skill/2yulinzhidi_cd

execute as @a[tag=weide] at @s run title @s actionbar [{"text":"纵身跃击","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEgg","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 雨林之地","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"正在冷却：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"skCDEXBottle","name":"@s"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":" 雨天","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"持续时间：","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"score":{"objective":"System","name":"SystemRain"},"color":"aqua","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]